<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>复合选择器</title>
    <style>
        /* .nav a {
            color: red;
        }

        div>strong {
            color: green;
        }

        div>p>strong {
            color: blue;
        }

        p.red {
            color: red;
        } */
        /* p,
        span {
            color: red;
        } */
        .site-r a {
            color: red;
        }

        .nav ul li a {
            color: orange;
        }

        .nav,
        .sitenav {
            font: 14px, "微软雅黑";
        }
    </style>
</head>

<body>

    <div class="nav">
        <ul>
            <li><a href="#">公司首页</a></li>
            <li><a href="#">公司简介</a></li>
            <li><a href="#">公司产品</a></li>
            <li><a href="#">联系我们</a></li>
        </ul>
    </div>
    <div class="sitenav">
        <div class="site-1">左侧测导航栏</div>
        <div class="site-r"><a href="#">登录</a></div>
    </div>
    <!-- <div class="nav">
        <a href="#">内部链接</a>
        <a href="#">内部链接</a>
        <a href="#">内部链接</a>
    </div>
    <a href="#">外部链接</a>
    <a href="#">外部链接</a>
    <a href="#">外部链接</a>

    <div>
        <strong>儿子</strong>
        <strong>儿子</strong>
        <strong>儿子</strong>
    </div>
    <div>
        <p>
            <strong>孙子</strong>
            <strong>孙子</strong>
            <strong>孙子</strong>
        </p>
    </div>
<p class="red">红色</p>
<p class="red">红色</p>
<p class="red">红色</p>
<p>蓝色</p>
<p>蓝色</p>
<p>蓝色</p>
<div class="red">红色</div>
<div class="red">红色</div>
<div class="red">红色</div> -->

    <!-- <p>我和你</p>
    <p>我和你</p>
    <p>我和你</p>
    <span>我和你</span>
    <span>我和你</span>
    <span>我和你</span>
    <div>我和你</div>
    <div>我和你</div>
    <h1>你和我</h1>
    <h1>你和我</h1> -->

</body>

</html>